package io.renren.modules.evaluate.controller;

import io.renren.common.utils.R;
import io.renren.modules.evaluate.dao.UpLoadMapper;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpSession;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Controller
public class TestController {

    @Autowired
    UpLoadMapper upLoadMapper;


    @ApiOperation("试一试")
    @PostMapping("/shiyishi/shiyishi")
    public String test(){
        HashMap<String,Object> map = new HashMap<>();
        HashMap<String,Object> map1 = new HashMap<>();
        map1.put("table1","学生信息表");
        map.put("1","学号");
        map.put("2","姓名");
        map.put("3","sdaas");
/*        upLoadMapper.creattbl(map,"table1");*/
/*        upLoadMapper.savetbl(map1);*/
/*        upLoadMapper.savecol(map,"table1");*/
        return "123";
    }

 /*   @ResponseBody
    @GetMapping("/find/byname")
    public List<R> getByTableName(){
        List<R> l = upLoadMapper.getByTableName("test99");
        return l;
    }*/

}
